package com.shuangti;

public class Test1 {
    public static void main(String[] args) {
        /*int tiwen = 37;
        if(tiwen>37){
            System.out.println("不能通过");
        }
        else{
            System.out.println("通过");
        }*/

        /*int day = 8;
        switch (day){
            case 1:
                System.out.println("1111");
                break;
            case 2:
                System.out.println("2222");
                break;
            case 3:
                System.out.println("3333");
                break;
            default:
                System.out.println("4444");
                break;
        }*/

        //穿透  无break时
       /* int day = 2;
        switch (day){
            case 1:
            case 2:
            case 3:
                System.out.println("nihao");
                break;

            default:
                System.out.println("hhhhhh");
                break;
        }*/


        /*for (int i = 1; i <= 100; i++){
            System.out.println(i);
        }*/
        /*for (int i = 0; i <=100; i+=2) {
            System.out.println(i);
        }*/

        //求和
        /*int sum = 0;
        for (int i = 1; i <= 100 ; i++) {
            sum += i;
        }
        System.out.println(sum);*/

        //阶乘
        /*int jiecheng = 1;
        for (int i = 1; i < 6; i++) {
            jiecheng *= i;
        }
        System.out.println(jiecheng);*/

        //while 循环
        /*int i = 1;
        while (i < 5){
            System.out.println(i);
            i++;
        }*/


//珠穆朗玛峰折叠纸
        /*int i = 0;
        double height = 0.1;
        while (height < 8848860){
                height *= 2;
                i++;
        }
        System.out.println(i);*/


//do while循环  至少执行一次
        /*int i = 0;
        do{
            System.out.println(111);
            i++;
        }while (i<5);*/

// 死循环，无限循环，不停止
        /*while (true){

        }*/
       /* do {

        }while (true);*/
       /* for(;;){}*/
    }
}
